package com.budwk.app.waterquality.models;

import com.budwk.starter.common.openapi.annotation.ApiModel;
import com.budwk.starter.common.openapi.annotation.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.nutz.dao.entity.annotation.*;
import org.nutz.dao.interceptor.annotation.PrevInsert;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@Accessors(chain = true)
@Table("waterquality.wk_water_section_info")
@Comment("水质断面检测点成果基本信息表")
@ApiModel(description = "水质断面检测点成果基本信息表")
public class WaterSectionInfo extends BaseModel implements Serializable {

    private static final long serialVersionUID = 1L;

    @Column
    @Name
    @Comment("编号")
    @ApiModelProperty(description = "ID")
    @ColDefine(type = ColType.VARCHAR, width = 50)
    @PrevInsert(els = {@EL("snowflake()")}, nullEffective = true)
    private String id;

    @Column("STNM")
    @Comment("断面名称")
    @ApiModelProperty(description = "断面名称")
    @ColDefine(type = ColType.VARCHAR, width = 120)
    private String STNM;

    @Column("river_system")
    @Comment("河流水系")
    @ApiModelProperty(description = "监测中心名称")
    @ColDefine(type = ColType.VARCHAR, width = 120)
    private String riverSystem;

    @Column("dm_address")
    @Comment("断面地点")
    @ApiModelProperty(description = "断面地点")
    @ColDefine(type = ColType.VARCHAR, width = 300)
    private String dmAddress;

    @Column("section_date")
    @Comment("时间")
    @ApiModelProperty(description = "时间")
    @ColDefine(type = ColType.DATETIME, width = 300)
    private LocalDateTime sectionDate;

    @Column("upload_name")
    @Comment("上传人员")
    @ApiModelProperty(description = "上传人员")
    @ColDefine(type = ColType.VARCHAR, width = 300)
    private String uploadName;

    @Column("upload_date")
    @Comment("上传时间")
    @ApiModelProperty(description = "上传时间")
    @ColDefine(type = ColType.DATETIME, width = 300)
    private LocalDateTime uploadDate;


    @Column("remark")
    @Comment("备注说明")
    @ApiModelProperty(description = "备注说明")
    @ColDefine(type = ColType.VARCHAR, width = 600)
    private String remark;
}
